/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cput.tp.patterns.creational.prototype;

/**
 *
 * @author Malotana
 */
public class Person implements Prototype{
    private String name;
    
    public Person(String name){
        this.name = name;
    }
    
    @Override
    public Prototype doClone() {
        return new Person(name);
    }
    public String toString(){
        return ("This person name is:"+name);
    }
}
